
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGGradientBackground.h>
#include <OpenSG/OSGGradientBackgroundBase.h>
#include <OpenSG/OSGDrawAction.h>
#include <OpenSG/OSGViewport.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_GradientBackground_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_GradientBackground()
{
    scope* osg_GradientBackgroundBase_scope = new scope(
    class_< osg::GradientBackgroundBase, bases< osg::Background > , boost::noncopyable >("GradientBackgroundBase", no_init)
//        .def_readonly("ColorFieldMask", &osg::GradientBackgroundBase::ColorFieldMask)
//        .def_readonly("PositionFieldMask", &osg::GradientBackgroundBase::PositionFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::GradientBackgroundBase::MTInfluenceMask)
        .def("getClassType", &osg::GradientBackgroundBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::GradientBackgroundBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::GradientBackgroundBase::*)() )&osg::GradientBackgroundBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::GradientBackgroundBase::*)() const)&osg::GradientBackgroundBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::GradientBackgroundBase::getContainerSize)
        .def("getBinSize", &osg::GradientBackgroundBase::getBinSize)
        .def("copyToBin", &osg::GradientBackgroundBase::copyToBin)
        .def("copyFromBin", &osg::GradientBackgroundBase::copyFromBin)
        .def("create", &osg::GradientBackgroundBase::create)
        .def("createEmpty", &osg::GradientBackgroundBase::createEmpty)
        .def("shallowCopy", &osg::GradientBackgroundBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("ColorFieldId") = (int)osg::GradientBackgroundBase::ColorFieldId;
    scope().attr("NextFieldId") = (int)osg::GradientBackgroundBase::NextFieldId;
    scope().attr("PositionFieldId") = (int)osg::GradientBackgroundBase::PositionFieldId;

    delete osg_GradientBackgroundBase_scope;

    class_< osg::GradientBackground, bases< osg::GradientBackgroundBase > , boost::noncopyable, osg::GradientBackgroundRefPtr >("GradientBackground", no_init)
        .def_readonly("LineFieldMask", &osg::GradientBackground::LineFieldMask)
        .def("getClassname", &osg::GradientBackground::getClassname)
        .def("clear", &osg::GradientBackground::clear)
        .def("addLine", &osg::GradientBackground::addLine)
        .def("clearLines", &osg::GradientBackground::clearLines)
        .def("changed", &osg::GradientBackground::changed)
        .def("dump", &osg::GradientBackground::dump, osg_GradientBackground_dump_overloads_0_2())
        .staticmethod("getClassname")
    ;


    register_ptr_to_python<osg::GradientBackgroundPtr>();
    implicitly_convertible<osg::GradientBackgroundRefPtr, osg::GradientBackgroundPtr>();
    implicitly_convertible<osg::GradientBackgroundPtr, osg::BackgroundPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::GradientBackgroundPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::GradientBackgroundPtr>);
}

